﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.HtmlControls;
using Xyz.Framework.Shared.DataContracts.DTO;

namespace HRSWeb.UI.BasePages
{
    public class BasePage : System.Web.UI.Page
    {
        

        public virtual string ApplicationTitle
        {
            get
            {
                return "Xyz Otomasyon Sistemleri";
            }
        }

        protected override void OnPreInit(EventArgs e)
        {
            this.Title = ApplicationTitle;
            base.OnPreInit(e);
            
        }

        private void RegisterCssAndJavascripts()
        {
            HtmlLink _csslink = new HtmlLink();
            _csslink.Href = this.ClientScript.GetWebResourceUrl(typeof(BasePage), "HRSWeb.UI.Resources.hrs.css");
            _csslink.Attributes["rel"] = "stylesheet";
            _csslink.Attributes["type"] = "text/css";
            this.Header.Controls.Add(_csslink);
        }

        protected override void OnInit(EventArgs e)
        {
            this.RegisterCssAndJavascripts();
            base.OnInit(e);
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

        }

      


    }
}
